package com.wx.mythread.thread;

/**
 * 实现Runable接口创建线程
 */
public class RunableThread implements Runnable {


    @Override
    public void run() {
        System.out.println(Thread.currentThread().getName());
    }

    public static void main(String[] args) {
        RunableThread runableThread = new RunableThread();
        Thread thread = new Thread(runableThread);
        thread.start();
        System.out.println(Thread.currentThread().getName());
    }
}
